﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.peddler {
    import flash.display.*;
    import org.aswing.*;
    import Classes.*;
    import flash.text.*;
    import org.aswing.ext.*;
    import Display.aswingui.*;

    public class PeddlerCryoutToolTip extends Sprite {

        private var m_cryoutTextField:MultilineLabel;
        private var m_j_wd:JWindow;
        private var m_backgroundPanel:JPanel;
        private var m_bg:DisplayObject;
        private var m_content:JPanel;

        public function PeddlerCryoutToolTip(){
            this.m_j_wd = new JWindow(this);
            this.m_bg = (new EmbeddedArt.peddler_cryout_cloud() as DisplayObject);
            this.m_backgroundPanel = ASwingHelper.makeSoftBoxJPanelVertical(SoftBoxLayout.CENTER);
            var _local1:AssetBackground = new AssetBackground(this.m_bg);
            this.m_backgroundPanel.setBackgroundDecorator(_local1);
            this.m_content = ASwingHelper.makeSoftBoxJPanelVertical(SoftBoxLayout.CENTER);
            this.m_cryoutTextField = new MultilineLabel("");
            this.m_cryoutTextField.setEnabled(false);
            this.m_cryoutTextField.setEditable(false);
            this.m_content.append(this.m_cryoutTextField);
            this.m_content.append(ASwingHelper.verticalStrut(20));
            this.m_content.setPreferredWidth(this.m_bg.width);
            ASwingHelper.setEasyBorder(this.m_content, 6, 8, 8, 8);
            this.m_backgroundPanel.append(this.m_content);
            this.m_j_wd.setContentPane(this.m_backgroundPanel);
            ASwingHelper.prepare(this.m_cryoutTextField);
            ASwingHelper.prepare(this.m_backgroundPanel);
            ASwingHelper.prepare(this.m_j_wd);
            this.m_j_wd.show();
        }
        public function setCryoutText(_arg1:String):void{
            this.m_cryoutTextField.setText(_arg1);
            var _local2:TextFormat = new TextFormat();
            _local2.align = TextFormatAlign.CENTER;
            this.m_cryoutTextField.setTextFormat(_local2);
            ASwingHelper.prepare(this.m_content);
            ASwingHelper.prepare(this.m_cryoutTextField);
            ASwingHelper.prepare(this.m_backgroundPanel);
            ASwingHelper.prepare(this.m_j_wd);
        }

    }
}//package Modules.peddler 
